package com.turboconnard.display;

public class Box extends Cube {
	public Box(float pWidth, float pHeight,float pDepth){
			super();
			float unitw = pWidth*stage.correction/2;
			float unith = pHeight*stage.correction/2;
			float unitd = pDepth*stage.correction/2;
			width =pWidth;
			height = pHeight;
			depth = pDepth;
			float[] verts = {
					//Vertices according to faces
		    		-unitw, -unith, unitd, //Vertex 0
		    		unitw, -unith, unitd,  //v1
		    		-unitw, unith, unitd,  //v2
		    		unitw, unith, unitd,   //v3
		    		
		    		unitw, -unith, unitd,	//...
		    		unitw, -unith, -unitd,    		
		    		unitw, unith, unitd,
		    		unitw, unith, -unitd,
		    		
		    		unitw, -unith, -unitd,
		    		-unitw, -unith, -unitd,    		
		    		unitw, unith, -unitd,
		    		-unitw, unith, -unitd,
		    		
		    		-unitw, -unith, -unitd,
		    		-unitw, -unith, unitd,    		
		    		-unitw, unith, -unitd,
		    		-unitw, unith, unitd,
		    		
		    		-unitw, -unith, -unitd,
		    		unitw, -unith, -unitd,    		
		    		-unitw, -unith, unitd,
		    		unitw, -unith, unitd,
		    		
		    		-unitw, unith, unitd,
		    		unitw, unith, unitd,    		
		    		-unitw, unith, -unitd,
		    		unitw, unith, -unitd,
			};
			vertices = verts;
			defineBuf();
		}
	
}
